package com.earthchen.domain.entity.statistics;


import com.earthchen.domain.entity.BaseEntity;

import java.util.Date;

/**
 * 统计分析数据
 *
 * @author earthchen
 * @date 2018/10/29
 **/
public class Statistics extends BaseEntity<Statistics> {

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 用户名
     */
    private String username;

    /**
     * 时间
     */
    private Date createTime;

    /**
     * 最低心跳
     */
    private Integer minHeartbeat;

    /**
     * 最高心跳
     */
    private Integer maxHeartbeat;

    /**
     * 最高呼吸频率
     */
    private Integer minBreath;

    /**
     * 最低呼吸频率
     */
    private Integer maxBreath;

    /**
     * 呼吸暂停次数24小时清零，3秒一次发送， 累加
     */
    private Integer odor;

    /**
     * 体动次数
     */
    private Integer movCount;

    /**
     * 睡眠时间
     * <p>
     * 单位小时
     */
    private Double sleepHour;

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getMinHeartbeat() {
        return minHeartbeat;
    }

    public void setMinHeartbeat(Integer minHeartbeat) {
        this.minHeartbeat = minHeartbeat;
    }

    public Integer getMaxHeartbeat() {
        return maxHeartbeat;
    }

    public void setMaxHeartbeat(Integer maxHeartbeat) {
        this.maxHeartbeat = maxHeartbeat;
    }

    public Integer getMinBreath() {
        return minBreath;
    }

    public void setMinBreath(Integer minBreath) {
        this.minBreath = minBreath;
    }

    public Integer getMaxBreath() {
        return maxBreath;
    }

    public void setMaxBreath(Integer maxBreath) {
        this.maxBreath = maxBreath;
    }

    public Integer getOdor() {
        return odor;
    }

    public void setOdor(Integer odor) {
        this.odor = odor;
    }

    public Integer getMovCount() {
        return movCount;
    }

    public void setMovCount(Integer movCount) {
        this.movCount = movCount;
    }

    public Double getSleepHour() {
        return sleepHour;
    }

    public void setSleepHour(Double sleepHour) {
        this.sleepHour = sleepHour;
    }

    @Override
    public String toString() {
        return "Statistics{" +
                "userId=" + userId +
                ", username='" + username + '\'' +
                ", createTime=" + createTime +
                ", minHeartbeat=" + minHeartbeat +
                ", maxHeartbeat=" + maxHeartbeat +
                ", minBreath=" + minBreath +
                ", maxBreath=" + maxBreath +
                ", odor=" + odor +
                ", movCount=" + movCount +
                ", sleepHour=" + sleepHour +
                '}';
    }
}
